package com.zy.teacherSecretarySide.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zy.teacherSecretarySide.dao.TeacherSecretaryDao;
import com.zy.teacherSecretarySide.entity.TeacherSecretary;
import com.zy.teacherSecretarySide.service.ITeacherSecretaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * @author qu
 */
@Service
public class ITeacherSecretaryServiceImpl extends ServiceImpl<TeacherSecretaryDao, TeacherSecretary> implements ITeacherSecretaryService {

    @Autowired
    private TeacherSecretaryDao teacherSecretaryDao;

    @Override
    public TeacherSecretary teacherSecretaryLogin(Integer secretaryNum, String secretaryPassword) {
        return teacherSecretaryDao.teacherSecretaryLogin(secretaryNum,secretaryPassword);
    }

    @Override
    public TeacherSecretary getSecretaryById(Integer secretaryNum){
        return teacherSecretaryDao.getSecretaryById(secretaryNum);
    }
}
